﻿
using System.Runtime.Serialization;
using EasyComm.ServiceUnit;
namespace EasyComm.Service.Data
{
    [DataContract]
    public class ServicePerformance
    {
        [DataMember]
        public WorkerServiceUnit Unit { get; private set; }

        [DataMember]
        public int ThreadCount { get; set; }

        [DataMember]
        public int MemoryUsed { get; set; }

        [DataMember]
        public int CPUPercent { get; set; }

        public ServicePerformance()
        {

        }

        public ServicePerformance(WorkerServiceUnit serviceUnit)
        {
            Unit = serviceUnit;
        }
    }
}
